import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [  // 为 routes 添加类型注解
  {
    path: '/',
    name: 'HelloWorld',
    component: () => import('@/components/HelloWorld.vue'),
  },
  {
    path: '/Audio',
    name: 'Audio',
    component: () => import('@/view/Audio.vue'),
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
